package main

import (
	"cloud.hubbleye.appalert.service_r/internal/middleware"
	"cloud.hubbleye.appalert.service_r/internal/router"
	"cloud.hubbleye.appalert.service_r/internal/util"
)

func main() {
	// 服务重新启动，日志会追加，不会删除
	middleware.InitLogger(middleware.LogPath, "debug")
	go util.ReadKafka(middleware.ThisNacosData.Kafka1, "prd-application-log-biz", 1)
	go util.ReadKafka(middleware.ThisNacosData.Kafka2, "onlinelog", 2)
	go util.ReadKafka(middleware.ThisNacosData.Kafka2, "prd-saas", 2)
	go util.HanderNsq(middleware.ThisNacosData.NSQ)
	router.Init()
}
